<?php
/*
 * Created on 2011-5-23
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 *
 */
 
class Dailynews_lib{
	var $CI;
	function __construct()
	{
		$this->CI = & get_instance();
	}
	 
	function filterbody($body)
	{
		$ret = $body ;
		$ret = preg_replace('@【更多精彩.*@is', '', $ret);
		$ret = preg_replace('@【缤纷生活.*@is', '', $ret);
		return $ret;
	}
	
	function filtertitle($title)
	{
		$ret = $title;
		//$ret = "手机报-新闻早报5.5";
		$ret = preg_replace('@手机报-新闻早报@is', '新闻晨报', $ret);
		$ret = preg_replace('@手机报-新闻晚报@is', '新闻晚报', $ret);
		return $ret;
	} 
}	
?>
